<template>
  <!-- 底部部分 -->
  <footer class="footer">
    <span class="todo-count"><strong>{{sum}}</strong>剩余</span>
    <ul class="filters">
      <li>
        <a class="selected" href="#/">全部</a>
      </li>
      <li>
        <a href="#/active">进行中</a>
      </li>
      <li>
        <a href="#/completed">已完成</a>
      </li>
    </ul>
    <button class="clear-completed" v-if="Clearbtn" @click="delAll">清除已完成</button>
  </footer>
</template>
 
<script>
export default {
  name: "ListFooter",
  props: {
    Clearbtn: {
      type: Boolean,
      required: true,
    },    
   sum: {
      type: Number,
      required: true,
    },
  },
  methods:{
    delAll(){
      this.$emit('delAll')
    }
  }
};
</script>

<style scoped>
</style>